<html>
	<head>	
		<title>管理实验中心</title>
		<load href="__JS__/menu.js" />
		<load href="__JS__/leftmenubar.js" />
		<load href="__CSS__/header.css" />
		<load href= "__JS__/jshelper.js" /> 
		<script type="text/JavaScript">
			function centerlabedit(id){
				window.location.href="__URL__/centerlabedit/id/"+id;
			}
			function centerlabdelete(id){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/centerlabdelete');
					postwith('__URL__/centerlabdelete',{id:id});
				}
			}
			
			window.onload=show;
		</script>
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
		<script type="text/JavaScript">
        $(function(){
            $('#form1').ajaxForm({
                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
                success:       complete,  // post-submit callback
                error:function(){alert("error");},
                dataType: 'json'
            });
            
            function complete(data){
                if (data.status==1)
                {
                	window.location=window.location.href;
                }else{
                    $('#result').html(data.info).show();
                }
            }
        });
        </script>
	</head>
	<body>	
		
		<div class="nowposition">  <!--当前位置-->
			当前位置：
		<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
		<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
		<a href="__URL__/centerlabdetail" class="nowpositionhref">实验中心管理</a>
		</div>
	</div>
	<div id="container">
		<layout name="Auth:leftmenu" />
		<div class="Addcenterlab">
			<div id='result'></div>	
  		</div>
	</div>
			<!--显示学院-->
			<div id="centerlab_Show">
				<table  border="0" align="centerlab" cellpadding="0px" cellspacing="0px">
					<thead  style="background-color:#f0f0f0;">
						<tr id="table_centerlab_show_title">
							<td style="width:150px">实验中心名称</td>
							<td style="width:50px">操作</td>
							<a href="__URL__/centeradd2" class="nowpositionhref">实验中心添加</a>
						</tr>
					</thead>
					<load href"__PUBLIC__/js/list_show.js">
					<tbody id="tab">
						<volist name='list' id='vo' >
							<tr id="table_centerlab_show">
								
								<td style="width:180px;">{$vo.name}</td><!--实验中心名称-->
								<td style="display:none;">{$vo.id}</td>	<!--实验中心ID-->
								<td style="width:100px">
									<a href="javascript:centerlabedit('{$vo.id}')" style="color:#666666; text-decoration:none; font-size:12px;">编辑</a>
									<!--<input type="button" name="centerlabedit"onClick="centerlabedit({$vo.id})" value="编辑">-->
									<a  href="javascript:centerlabdelete('{$vo.id}')" style="color:#666666; text-decoration:none; font-size:12px;">删除</a>
									<!--<input name="delete_centerlab" type="reset" onClick="centerlabdelete({$vo.id})" value="删除">-->
								</td>
							</tr>
						</volist>
					</tbody>		
				</table>
			
				<div align="right" class="green-black" style="width:900px; position:relative; top:20px; left:-35px;">
					{$page}
				</div>
		</div>
	</body>
</html>